<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>新闻中心</title>
	<!-- Animate.css -->
	<link rel="stylesheet" href="/TP/Public/css/animate.css">
	<!-- Icomoon Icon Fonts
	<link rel="stylesheet" href="css/icomoon.css">-->
	<!-- Bootstrap  -->
	<link rel="stylesheet" href="/TP/Public/css/bootstrap.css">
	<!-- Flexslider  
	<link rel="stylesheet" href="css/flexslider.css">-->
	<!-- Theme style  -->
	<link rel="stylesheet" href="/TP/Public/css/news.css">

	<!-- Modernizr JS -->
	<script src="/TP/Public/js/modernizr-2.6.2.min.js"></script>
	<!-- FOR IE9 below -->
	<!--[if lt IE 9]>
	<script src="/TP/Public/js/respond.min.js"></script>
	<![endif]-->
	<style>
		p{
			margin-bottom: 10px;
			width: 800px;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
			height: 32px;

		}
		#row a,#row span{
			display: inline-block;
			padding: 7px;
		}
		 .fh5co-property-innter span{
			display: inline-block;
			margin-right: 20px;
		}
	</style>
	</head>
	<body>
	<h2 style="color: blue;margin: 30px">新闻中心</h2>
		<p style="margin-left: 40px;">首页　>　新闻中心</p>
		<?php if(is_array($news)): foreach($news as $key=>$val): ?><div class="col-md-4 item-block animate-box" data-animate-effect="fadeIn" style="width: 100%;height: 200px;margin-bottom: 20px;">
				<div class="fh5co-property">
					<div class="fh5co-property-innter">
						<h3><a href="<?php echo U('home/news/news',['id'=>$val['id']]);?>" target="_blank"><?php echo ($val['title']); ?></a></h3>
						<div class="content"><p><?php echo htmlspecialchars_decode($val['content']);?></p></div>
					   <span>发表时间:</span><span><?php echo date('Y-m-d',$val['addtime']);?></span>
					</div>
				</div>
			</div><?php endforeach; endif; ?>
		<div id="row" style="margin-left: 50%;">
			<?php echo ($show); ?>
		</div>
	</div>
	
	
	<!-- jQuery -->
	<script src="/TP/Public/js/jquery-2.1.3.min.js"></script>
	<!-- jQuery Easing -->
	<script src="/TP/Public/js/jquery.easing.1.3.js"></script>
	<!-- Bootstrap -->
	<script src="/TP/Public/js/bootstrap.min.js"></script>
	<!-- Waypoints -->
	<script src="/TP/Public/js/jquery.waypoints.min.js"></script>
	<!-- Flexslider -->
	<script src="/TP/Public/js/jquery.flexslider-min.js"></script>

	<!-- MAIN JS -->
	<script src="/TP/Public/js/main.js"></script>
	</body>
</html>